<form action="{{route('admin.goods.type.saveParams')}}" method="post"  class="layui-form">

    <div style="padding:30px 30px 30px 10px" >
        <div class="layui-form-item">
            <label class="layui-form-label">类型名称：</label>
            <div class="layui-input-block">
                <input type="text"  disabled  value="{{$info->name?? ''}}"  autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">选择参数：</label>
            <div class="layui-input-block">
                @foreach($params['data'] as $key =>$val)
                    <input type="checkbox" @if(in_array($val['id'],$checkArr)) checked @endif name="params_id[]"  value="{{$val['id']}}"  title="{{$val['name']}}">
                @endforeach
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-fluid"  lay-submit lay-filter="popup-save" >保 存</button>
                <input type="hidden" name="type_id" value="{{$info->id}}">
            </div>
        </div>
    </div>
</form>